home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / sound / 5220intf.h < prev    next >
C/C++ Source or Header  |  2000-04-04  |  661b  |  27 lines

  1. #ifndef intf5220_h
  2. #define intf5220_h
  3.  
  4. struct TMS5220interface
  5. {
  6.     int baseclock;                /* clock rate = 80 * output sample rate,     */
  7.                                 /* usually 640000 for 8000 Hz sample rate or */
  8.                                 /* usually 800000 for 10000 Hz sample rate.  */
  9.     int mixing_level;
  10.     void (*irq)(int state);        /* IRQ callback function */
  11. };
  12.  
  13. int tms5220_sh_start(const struct MachineSound *msound);
  14. void tms5220_sh_stop(void);
  15. void tms5220_sh_update(void);
  16.  
  17. WRITE_HANDLER( tms5220_data_w );
  18. READ_HANDLER( tms5220_status_r );
  19. int tms5220_ready_r(void);
  20. int tms5220_int_r(void);
  21.  
  22. void tms5220_reset(void);
  23. void tms5220_set_frequency(int frequency);
  24.  
  25. #endif
  26.  
  27.